<?php
/**
 * Created by PhpStorm.
 * User: iceberg
 * Date: 2019-01-29
 * Time: 10:35
 */

namespace app\system\controller;

use app\service\SignService;
use think\Controller;
use think\facade\Request;
class Sign extends Controller
{
    //签名业务
    private $signService;
    //初始化
    public function initialize()
    {
        $this->signService = new SignService();
    }

    //显示登录页面
    public function login()
    {
        return $this->fetch();
    }

    //登录检测
    public function check()
    {
        return $this->signService->check();
    }

    //登出
    public function logout()
    {
        $this->signService->logout();
        return $this->redirect('system/Sign/login');
    }
}